package dao.inte;

import domain.User;

import javax.persistence.NonUniqueResultException;
import java.util.List;

public interface UserRepository extends AbstractEntityRepositoryInterface<User> {

    User findByLogin(String login) throws NonUniqueResultException;

    User findByMail(String email);

    List<User> findUsers(int first, int count, String property, boolean ascending);
}
